<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 学生
 * Class Student
 * @package App\Models
 */
class Student extends Model
{
    protected $fillable = ['name', 'class_id'];

    public function oneClass()
    {
        return $this->belongsTo(Classes::class, 'class_id');
    }
}
